LOCAL_PATH := $(call my-dir)


#1sdk begin
include $(CLEAR_VARS)
LOCAL_MODULE := sfunityoffline
LOCAL_SRC_FILES := $(TARGET_ARCH_ABI)/libsfunityoffline.so
include $(PREBUILT_SHARED_LIBRARY)
#1sdk end


$(call import-add-path,$(COCOS_FRAMEWORKS)/cocos2d-x-3.8/)
$(call import-add-path,$(COCOS_FRAMEWORKS)/cocos2d-x-3.8/cocos)
$(call import-add-path,$(COCOS_FRAMEWORKS)/cocos2d-x-3.8/external)

LOCAL_MODULE := cocos2dcpp_shared

#LOCAL_MODULE_FILENAME := libcocos2dcpp
LOCAL_MODULE_FILENAME := libtopself


FILE_LIST := hellocpp/main.cpp 
FILE_LIST += $(wildcard $(LOCAL_PATH)/../../Classes/*.cpp)
FILE_LIST += $(wildcard $(LOCAL_PATH)/../../Classes/*/*.cpp)
FILE_LIST += $(wildcard $(LOCAL_PATH)/../../Classes/*/*.c)

LOCAL_SRC_FILES := $(FILE_LIST:$(LOCAL_PATH)/%=%)


LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes

LOCAL_STATIC_LIBRARIES := cocos2dx_static

LOCAL_SHARED_LIBRARIES := mobclickcpp_shared

#add by snowfish -s
LOCAL_SHARED_LIBRARIES += sfunityoffline
#add by snowfish -e

include $(BUILD_SHARED_LIBRARY)

$(call import-module,./prebuilt-mk)
$(call import-module,libMobClickCpp)
